package com.example.demo.controller;

import com.example.demo.entity.Order;
import com.example.demo.result.ResponseData;
import com.example.demo.service.OrderService;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (Order)表控制层
 *
 * @author makejava
 * @since 2021-06-01 08:53:43
 */
@RestController
@RequestMapping("order")
public class OrderController {
    /**
     * 服务对象
     */
    @Resource
    private OrderService orderService;

    @ApiOperation(value = "createOrder",notes = "预约美容项目")
    @ApiImplicitParam(name = "order",value = "预约对象")
    @PostMapping("createOrder")
    public ResponseData createOrder(@RequestBody Order order){
        System.out.println("123u78328hr348yfe");
        System.out.println("123u78328hr348yfgdwe");
        return orderService.insert(order);
    }

}
